home *** CD-ROM | disk | FTP | other *** search
/ PC Plus SuperCD (UK) 1998 August / PC Plus SuperCD 50a Issue 142 (CD142a) (August 1998).iso / trial / demon / TURNPIKE.1 / CLASSES.ZIP / JAVA / AWT / Dimension.class (.txt) < prev    next >
Encoding:
Java Class File  |  1997-04-14  |  777 b   |  24 lines

  1. package java.awt;
  2.  
  3. public class Dimension {
  4.    public int width;
  5.    public int height;
  6.  
  7.    public Dimension() {
  8.       this(0, 0);
  9.    }
  10.  
  11.    public Dimension(Dimension var1) {
  12.       this(var1.width, var1.height);
  13.    }
  14.  
  15.    public Dimension(int var1, int var2) {
  16.       this.width = var1;
  17.       this.height = var2;
  18.    }
  19.  
  20.    public String toString() {
  21.       return this.getClass().getName() + "[width=" + this.width + ",height=" + this.height + "]";
  22.    }
  23. }
  24.